package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import com.xuecheng.content.entity.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-15
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     * 查询课程教师信息
     *
     * @param courseId
     * @return
     */
    List<CourseTeacherDTO> queryTeacherList(Long courseId, Long companyId);


    /**
     * 创建和修改课程教师信息
     *
     * @param dto
     * @return
     */
    CourseTeacherDTO createOrModifyTeacher(CourseTeacherDTO dto, Long companyId);


    /**
     * 删除教师信息
     *
     * @param courseId
     * @param courseTeacherId
     * @param companyId
     */
    void removeTeacher(Long courseId, Long courseTeacherId, Long companyId);
}